package cn.iocoder.yudao.module.pricehistory.controller.admin.pricehistory1.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import javax.validation.constraints.*;
import java.math.BigDecimal;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

@Schema(description = "管理后台 - 记录旅游线路价格的变动历史新增/修改 Request VO")
@Data
public class PriceHistorySaveReqVO {
    private Long historyId;
    private Long routeId;
    @Schema(description = "线路变动前的价格", requiredMode = Schema.RequiredMode.REQUIRED, example = "1657")
    @NotNull(message = "线路变动前的价格不能为空")
    private BigDecimal oldPrice;

    @Schema(description = "线路变动后的价格", requiredMode = Schema.RequiredMode.REQUIRED, example = "20666")
    @NotNull(message = "线路变动后的价格不能为空")
    private BigDecimal newPrice;

    @Schema(description = "价格变动的时间")
    private LocalDateTime changeTime;

}